package com.james.customcamera.base;

import com.james.customcamera.http.Http;
import com.james.customcamera.http.HttpService;
import com.james.customcamera.mvp.IModel;

/**
 * Created by James on 2018/1/31 0031.
 */

public class BaseModel implements IModel {
    protected static HttpService httpService;

    // 初始化HttpService
    static {
        httpService = Http.getHttpService();
    }

    /**
     * 通过接口产生信息回调
     *
     * @param <T>
     */
    public interface DataListener<T> {
        void successInfo(T result);

        void failInfo(String result);
    }


}
